﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using System.ComponentModel;

namespace SmesharikiMVC.Models.VideoCollection
{
    public class VideoAlbum
    {
        [Key]
        public int VideoAlbumID { get; set; }

        [Required]
        [DisplayName("Album Name")]
        [Remote("CheckAlbumName", "Validation")]
        [Editable(true)]
        public string AlbumName { get; set; }

        [Required]
        [DisplayName("Year")]
        [RegularExpression(@"2\d{3}")]
        public int YearIssued { get; set; }

        [Required]
        [DisplayName("Icon Url")]
        public string IconUrl { get; set; }

    }
}